package cn.qiyu5522.tk_ems.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_job_category")
@ApiModel(value="JobCategory对象", description="")
public class JobCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "岗位编号")
    @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    @ApiModelProperty(value = "岗位父级编号")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty(value = "岗位名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "是否有子项")
    @TableField("has_child")
    private Integer hasChild;

    @TableField(value = "operator_id", fill = FieldFill.INSERT_UPDATE)
    private Long operatorId;

    @TableField(value = "operator", fill = FieldFill.INSERT_UPDATE)
    private String operator;


    public interface Update {
    }

    public interface Insert {
    }
}
